home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / applications / misc / amicheck1_20.lha / amiCheckDEMO / GUIFront / Install / Install.IconX next >
Text File  |  1994-06-22  |  3KB  |  109 lines

  1. ; $VER: Install.IconX 37.2 (22.6.94)
  2. ;
  3. ; This script installs the GUIFront library and preferences editor on your
  4. ; hard drive.
  5. ;
  6. FailAt 21
  7.  
  8. Echo "GUIFront installation script for use with IconX"
  9. Echo "Copyright © 1994 by Michael Berg"
  10. Echo "All Rights Reserved"
  11. Echo ""
  12.  
  13. Echo "Installing library:"
  14.  
  15. Echo "    guifront.library"
  16.  
  17. SetEnv DoCopyLib YES
  18.  
  19. Version >NIL: guifront.library 37
  20. If NOT WARN
  21.     Echo "        You already have: " NOLINE
  22.     Version guifront.library
  23.     Echo "" NOLINE
  24.     Ask "        Do you want to install version 37.2 of guifront.library?"
  25.     If NOT WARN
  26.         SetEnv DoCopyLib NO
  27.     EndIf
  28. EndIf
  29.  
  30. If $DoCopyLib EQ "YES"
  31.     Echo "        Which CPU version of the library do you want to install? "
  32. Lab SelectLibVersion
  33.     Echo "            Enter '000' for the 68000 version"
  34.     Echo NOLINE "            Enter '020' for the 68020 version: "
  35.     /GetLine >ENV:GFLibInstallVersion
  36.     If $GFLibInstallVersion EQ "000"
  37.         SetEnv SourceFile /libs/guifront.library
  38.     Else
  39.         SetEnv SourceFile /libs/guifront.library.$GFLibInstallVersion
  40.     EndIf
  41.     If NOT EXISTS $SourceFile
  42.         Echo "            Illegal selection. Please re-select*N"
  43.         Skip BACK SelectLibVersion
  44.     EndIf
  45.  
  46.     Echo "        Copying guifront.library to your LIBS: ..."
  47.     Copy $SourceFile LIBS:guifront.library QUIET
  48. Else
  49.     Echo "        Skipped"
  50. EndIf
  51.  
  52. Avail >NIL: FLUSH
  53.  
  54. Echo ""
  55.  
  56. If EXISTS Locale:Catalogs
  57.     Echo "Do you wish to install the catalog files for the GUIFront"
  58.     Echo "preferences editor?"
  59.     Ask  "Kickstart 2.04 users should answer No, all others Yes: [y/n]:"
  60.     If WARN
  61.         Copy >NIL: Locale Locale: All
  62.         Echo "Catalogs installed"
  63.     EndIf
  64. Else
  65.     Echo "Catalog files not installed -- no Locale directory found"
  66. EndIf
  67.  
  68. If EXISTS SYS:Prefs
  69.     SetEnv TargetDir Sys:Prefs/
  70. Else
  71.     SetEnv TargetDir Sys:
  72. Endif
  73.  
  74. Echo "*NInstalling GUIFront preferences editor..."
  75.  
  76. Lab SelectDir
  77.  
  78. Ask "    Install in '$TargetDir'? [y/n]:"
  79. If WARN
  80.     Echo "        Which version do you wish to install?"
  81. Lab SelectVersion
  82.     Echo "          Enter '000' for the 68000 version"
  83.     Echo NOLINE "          Enter '020' for the 68020 version: "
  84.     /GetLine >ENV:GFInstallVersion
  85.     If $GFInstallVersion EQ "000"
  86.         SetEnv SourceFile /Prefs/GUIFront
  87.     Else
  88.         SetEnv SourceFile /Prefs/GUIFront.$GFInstallVersion
  89.     EndIf
  90.     If NOT EXISTS $SourceFile
  91.         Echo "          Illegal selection. Please re-select*N"
  92.         Skip BACK SelectVersion
  93.     EndIf
  94.  
  95.     Echo "        Copying preferences editor to '"$TargetDir"'..."
  96.     Copy $SourceFile $TargetDir QUIET
  97.     Copy $SourceFile.info $TargetDir QUIET
  98. Else
  99.     Echo NOLINE "    Enter other path, QUIT to skip installation: "
  100.     /GetLine >ENV:TargetDir
  101.     If NOT $TargetDir EQ "QUIT"
  102.         Skip BACK SelectDir
  103.     Else
  104.         Echo "    Installation skipped..."
  105.     EndIf
  106. EndIf
  107.  
  108. Echo "*NInstallation complete. You may close the window now."
  109.